package com.eight.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * @author 郭坤
 * @since 2023-02-24
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="tbAdvice", description="反馈邮箱实体类")
@TableName(value = "tb_advice")
public class TbAdvice implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @TableField(value = "id")
    private Integer id;

    @ApiModelProperty(value = "反馈类型(自驾车订单，国际租车订单，专车接送订单，门店车辆香瓜，押金相关，违章相关，发票，软件，企业服务相关，其他)")
    @TableField(value = "type")
    private String type;

    @ApiModelProperty(value = "意见内容")
    @TableField(value = "content")
    private String content;

    @ApiModelProperty(value = "附件1")
    @TableField(value = "path1")
    private String path1;

    @ApiModelProperty(value = "附件2")
    @TableField(value = "path2")
    private String path2;

    @ApiModelProperty(value = "附件3")
    @TableField(value = "path3")
    private String path3;

    @ApiModelProperty(value = "电话")
    @TableField(value = "phone_num")
    private String phoneNum;

    @ApiModelProperty(value = "邮箱")
    @TableField(value = "email")
    private String email;

    @ApiModelProperty(value = "添加时间")
    @TableField(value = "addtime")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDate addtime;


}
